/****************************************************************
 * <strong>MFMappingItem</strong>
 *
 * <p>
 * MFMappingItem
 * </p>
 *
 * @author AndyZhang 2011
 * @version 0.1
 * ToDo:2011-12-30
 ***************************************************************/

package com.thinkwide.data.mvc.config;

import com.thinkwide.data.mvc.core.MFMVCReturnType;
import com.thinkwide.data.mvc.core.MFRequestMethod;

import java.util.HashMap;
import java.util.Map;

public class MFMappingItem {
    private String url;
    private String className;
    private MFXParams params;
    private MFRequestMethod method;
    private String methodName;
    private String returnClass;
    private String convertClass;
    private MFMVCReturnType returnType;
    private Map<String, String> results;

    public MFMappingItem() {
        setResults(new HashMap<String, String>());
        returnType = MFMVCReturnType.View;
        params = new MFXParams();
    }

    public void setResults(Map<String, String> results) {
        this.results = results;
    }

    public Map<String, String> getResults() {
        return results;
    }

    public void setMethod(MFRequestMethod method) {
        this.method = method;
    }


    public MFRequestMethod getMethod() {
        return method;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getClassName() {
        return className;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUrl() {
        return url;
    }

    public void setParams(MFXParams params) {
        this.params = params;
    }

    public MFXParams getParams() {
        return params;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setReturnType(MFMVCReturnType returnType) {
        this.returnType = returnType;
    }

    public MFMVCReturnType getReturnType() {
        return returnType;
    }

    public void setReturnClass(String returnClass) {
        this.returnClass = returnClass;
    }

    public String getReturnClass() {
        return returnClass;
    }

    public void setConvertClass(String convertClass) {
        this.convertClass = convertClass;
    }

    public String getConvertClass() {
        return convertClass;
    }


}
